Skip to main content

Incoming Telegram Chat Event

By utilizing this event node, a new workflow instance is started whenever a user initiates a new chat with a Telegram Bot that you have created. Bots are special accounts that a user can chat with. The workflow will be started with certain variables containing information about the chat that you can use to perform additional actions and respond to the user.

Cocosplate AI helps with maintaining the chat contexts with each of the users, while you can establish user interaction with a clear and concise dialog model.

Variables​

These values are automatically set when a new chat is started:

VariableDescription
telegram.message_textThe text that was sent to the bot
telegram.chat_idChat identifier
telegram.api_tokenToken of the bot
telegram.message_from_usernameThe user that initiated the chat
telegram.message_from_firstnameFirst name
telegram.message_from_lastnameLast name
telegram.message_from_languagecodeLanguage of the user
telegram.message_from_isbotWhether the user itself is a bot